package com.dong.es.entity.searchparam.query.exist;


import com.dong.es.entity.EsBaseDTO;
import com.dong.es.entity.searchparam.query.EsQueryParam;
import org.apache.commons.lang3.StringUtils;

/**
 * @description: Es 查询 是否存在 相关
 * @author: 陈瑞东
 * @create: 2022-06-23 12:23
 */
public abstract class EsExistBaseParam extends EsQueryParam {
    private static final long serialVersionUID = -3670483593726001323L;

    // 字段名
    protected String field;

    public EsExistBaseParam(String field) {
        this.field = field;
    }

    @Override
    protected boolean valid(EsBaseDTO esBaseDTO) {
        return StringUtils.isNotBlank(field);
    }

}
